package cn.signalpha.modules.com.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.TreeMap;

/**
 * 视图实体类
 *
 * @author signalpha
 */
@Data
@ApiModel(value = "UserSignToDayVO对象", description = "今日签到记录")
public class UserSignToDayVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户今日是否签到")
	private Integer todaySignFlag;

	@ApiModelProperty(value = "服务器当前日期：防止手机端直接修改系统时间导致的问题")
	private Integer today;

	@ApiModelProperty(value = "服务器的当前月份：防止手机端直接修改系统时间导致的问题")
	private Integer month;

	@ApiModelProperty(value = "当月的签到情况 1签到 2补签")
	private TreeMap<Integer, Integer> signCalendar;

	@ApiModelProperty(value = "这个月的第一天是星期几，用于前端渲染日历图的时候定位")
	private Integer firstDayOfWeek;

	@ApiModelProperty(value = "用户连续签到次数")
	private Integer continuousCount;

	@ApiModelProperty(value = "用户当月补签了多少次")
	private Integer retroactiveCount;

	@ApiModelProperty(value = "日历部分会有上月的结尾几天的数据, 该字段为上个月共有多少天")
	private Integer lengthOfLastMonth;
}
